package Gui;

import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class UpdateClass extends JPanel {
	public Secretry main_frame;
	public UpdateClass(Secretry a) {
		setLayout(null);
		main_frame=a;
		JLabel lblCreateClass = new JLabel("Update Class");
		lblCreateClass.setFont(new Font("Tahoma", Font.PLAIN, 20));
		lblCreateClass.setBounds(153, 11, 144, 29);
		add(lblCreateClass);
		
		JButton btnNewButton = new JButton("Next");
		btnNewButton.setBounds(331, 251, 89, 23);
		add(btnNewButton);
		
		JButton btnNewButton_1 = new JButton("Back");
		btnNewButton_1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				main_frame.update_panel(8, 6);
			}
		});
		btnNewButton_1.setBounds(225, 251, 89, 23);
		add(btnNewButton_1);
	}
}
